package com.etc.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

// 能扫描到（ComponetScan）容器中放组件
@Component
public class Student implements IStudent {
        @Value("${user001}")
        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
}
